/**
 * Bakalarska prace - Inteligentni budik
 * @package sleepCatcher
 * @file FormStatistics.h
 * @author Jan Pesava - xpesav00
 * @email xpesav00@stud.fit.vutbr.cz
 * @date 24. 12. 2011
 */

#ifndef FORMSTATISTICS_H_
#define FORMSTATISTICS_H_

#include <FBase.h>
#include <FUi.h>

using namespace Osp::Base;
using namespace Osp::Ui::Controls;


class FormStatistics :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	FormStatistics();
	virtual ~FormStatistics();

// Constants
// Attributes
	ScrollPanel* pScrollPanel;
	EditField* pSleepPeriod;
	EditField* pSleepLength;
	EditField* pWishSleepLength;
	EditField* pDifference;
	EditField* pSleepQuality;
// Methods
public:
	bool Initialize(void);
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	int GetFormId();
	void Update();
	void Redraw();
};

#endif /* FORMSTATISTICS_H_ */
